package com.mgvlife.ddlw.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "tb_signininfo")
public class SignInInfo {
	@Id
	@Column(length = 36, name = "id", unique = true)
	private String id;
	@OneToOne(targetEntity = Student.class)
	private Student student;
	@OneToOne(targetEntity = Schedule.class)
	private Schedule schedule;
	private String signInTime;
	// 点到状态，-1 旷课， 1到， 0迟到，2早退，3病假，4事假
	private int signInStatus;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Schedule getSchedule() {
		return schedule;
	}

	public void setSchedule(Schedule schedule) {
		this.schedule = schedule;
	}

	public String getSignInTime() {
		return signInTime;
	}

	public void setSignInTime(String signInTime) {
		this.signInTime = signInTime;
	}

	public int getSignInStatus() {
		return signInStatus;
	}

	public void setSignInStatus(int signInStatus) {
		this.signInStatus = signInStatus;
	}

}
